package pattern.nullObject;

/**
 * 雇员接口
 *
 * @author sun.ye
 * @since 2020-07-17 09:10
 */
public interface Employee {
    boolean isTimeToPay();
    void pay();
    Employee NULL = new Employee() {
        @Override
        public boolean isTimeToPay() {
            return false;
        }

        @Override
        public void pay() {

        }
    };
}
